{include "Public/header"}
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<form action="{:U('index')}" method="get" class="form-horizontal">
				search：<input type="text" name="name" class="span11" placeholder="name"
					style="width: 120px; margin-right: 10px;" value="{$_GET['name']|''}"> 
				<input type="submit" class="btn btn-success"
					style="margin-left: 10px;" value="search">
					</p>
			</form>
			<div class="widget-box">
				<div class="widget-title">
					<div class="left-buttons">
						<a href="{:U('save')}" id="save" class="btn btn-success btn-mini"><i
							class="icon-plus icon-white"></i>add</a>
					</div>
				</div>
				<div class="widget-content nopadding">
					<table class="table table-bordered table-striped">
						<thead>
							<tr>
								<th>Name</th>
								<th>Remark</th>
								<th>Operation</th>
							</tr>
						</thead>
						<tbody>
							{foreach $list as $v}
							<tr class="gradeX">
								<td>{$v['name']}</td>
								<td>{$v['remark']}</td>
								<td style="text-align:center;">
									<a href="{:U('update?id='.$v['id'])}">Edit</a> - 
									<a href="{:U('delete?id='.$v['id'])}" class="delete">Delete</a>
								</td>
							</tr>
							{/foreach}
						</tbody>
						<tfoot>
							<tr>
								<td colspan="10">{$page}</td>
							</tr>
						</tfoot>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
{include "Public/footer"}